<div class="row">
    <div class="col-lg-12">
        <ol class="breadcrumb">
            <li><a>首页</a></li>
            <li class="active"><span>服务站列表</span></li>
        </ol>
        <div class="clearfix">
            <h1 class="pull-left">&nbsp;</h1>
            <div class="pull-right top-page-ui">
                <a href="#/company/edit/0" class="btn btn-primary pull-right">
                    <i class="fa fa-plus-circle fa-lg"></i> 添加公司
                </a>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-lg-12">
        <div class="main-box no-header clearfix">
            <div class="main-box-body clearfix">
                <div class="table-responsive">
                    <table class="table user-list table-hover">
                        <thead>
                        <tr>
                            <th>名称</th>
                            <th class="text-center">法人</th>
                            <th class="text-center">地址</th>
                            <th class="text-center">负责人</th>
                            <th class="text-center">经营时长</th>
                            <th class="text-center">联系电话</th>
                            <th class="text-center">服务人员数量</th>
                            <th class="text-center">操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <tr ng-repeat="item in list">
                            <td>
                                <img src="{{URL+item.logo}}" alt="" class="user_logo"
                                     ng-show="item.logo!=''&&item.logo!=null"/>
                                <img src="../../public/img/noimg.jpeg" class="user_logo" alt=""
                                     ng-if="item.logo==''||item.logo==null"/>
                                <a class="user-link">{{item.name}}</a>
                                <span class="user-subhead">{{item.create_time}}</span>
                            </td>
                            <td class="text-center">{{item.faren}}</td>
                            <td class="text-center">{{item.address}}</td>
                            <td class="text-center">{{item.fuzeren}}</td>
                            <td class="text-center">{{item.years}}</td>
                            <td class="text-center">{{item.telephone}}</td>
                            <td class="text-center">{{item.member_number}}</td>
                            <td class="text-center">
                                <a href="#/company/edit/{{item.code}}" class="table-link">
                                    <span class="fa-stack">
										<i class="fa fa-square fa-stack-2x"></i>
										<i class="fa fa-pencil fa-stack-1x fa-inverse"></i>
                                    </span>
                                </a>
                                <a ng-click="delete(item)" class="table-link danger">
                                    <span class="fa-stack">
										<i class="fa fa-square fa-stack-2x"></i>
										<i class="fa fa-trash-o fa-stack-1x fa-inverse"></i>
                                    </span>
                                </a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
                <ul class="pagination pull-right">
                    <li><a>总条数：{{count}}</a></li>
                    <li><a>总页数：{{totalPage}}</a></li>
                    <li><a ng-click="changePage(1)">首页</a></li>
                    <li><a ng-show="currentPage>1" ng-click="changePage(currentPage-1)"><i class="fa fa-chevron-left"></i></a></li>
                    <!--<li><span ng-show="frontdotShow">…</span></li>-->
                    <li ng-repeat="item in pageList" ng-click="changePage(item.number)" class="{{item.active}}"><a>{{item.number}}</a></li>
                    <!--<li><span ng-show="backdotShow">…</span></li>-->
                    <li><a ng-show="currentPage<totalPage" ng-click="changePage(currentPage+1)"><i class="fa fa-chevron-right"></i></a></li>
                    <li><a ng-click="changePage(totalPage)">尾页</a></li>
                </ul>
            </div>
        </div>
    </div>
</div>